package ${package}.schedulejob;


import javax.servlet.ServletContext;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.context.ApplicationContext;

import ${package}.commons.ServletContextSupportQuartzJobBean;

public class UpdateCounterJob extends ServletContextSupportQuartzJobBean {

	//private IKeywordService keywordService;

	protected void executeInternal(JobExecutionContext context)
			throws JobExecutionException {

		try {
			ApplicationContext appCtx = getApplicationContext(context);
			ServletContext servletContext = getServletContext(appCtx);
			//keywordService = (IKeywordService) appCtx.getBean("keywordService");
			servletContext.setAttribute("byTime", "AAA");
			
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
